/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package ComponenteDatos;

import ComponenteClase.TipoDocumento;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.List;

/**
 *
 * @author MIGUEL ARANA
 */
public interface TipoDocumentoDAO {
    
    public void insertarTipoDocumento(TipoDocumento t) throws SQLException;
    
    public TipoDocumento buscarTipoDocumento(int codigo) throws SQLException;
    
    public TipoDocumento buscarTipoDocumentoSerie(String serie) throws SQLException;
    
    public TipoDocumento buscarTipoDocumentoCodigo(String codigo) throws SQLException;
    
    public TipoDocumento buscarTipoDocumento(String sql,TipoDocumento t) throws SQLException;

    /*public static boolean eliminarCompra(int codcateg) throws SQLException {
    Connection cnn = BD.getConnection();
    PreparedStatement ps = null;
    ps = cnn.prepareStatement("delete from COMPRA WHERE idcompra=?");
    ps.setInt(1, codcateg);
    int rowsUpdated = ps.executeUpdate();
    cnn.close();
    ps.close();
    if (rowsUpdated > 0) {
    return true;
    } else {
    return false;
    }
    }*/
    public List<TipoDocumento> mostrarTipoDocumento() throws SQLException;
    
}